package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName userController
 * @Description TODO
 * @Author 86181
 * @Date 2022/9/5 23:30
 * @Version 1.0
 **/
@Controller
@RequestMapping("user")
public class userController {
    @RequestMapping("testuser")
    @ResponseBody
    public String testuser(String username){
        if (username.equals("qianfeng")){
            return "用户名已存在";
        }else {
            return "可以注册";
        }
    }
}
